package com.css.zfzx.fxpg.modules.casulaty.probability.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.casulaty.probability.repository.entity.FxCasulatyProbabilityEntity;
import com.css.zfzx.fxpg.modules.casulaty.probability.viewobjects.FxCasulatyProbabilityQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author leon
 * @date 2020-12-03
 */

public interface FxCasulatyProbabilityService {

    JSONObject queryFxCasulatyProbabilitys(FxCasulatyProbabilityQueryParams queryParams, int curPage, int pageSize);

    List<FxCasulatyProbabilityEntity> listFxCasulatyProbabilitys(FxCasulatyProbabilityQueryParams queryParams);

    FxCasulatyProbabilityEntity getFxCasulatyProbability(String id);

    FxCasulatyProbabilityEntity saveFxCasulatyProbability(FxCasulatyProbabilityEntity fxCasulatyProbability);

    FxCasulatyProbabilityEntity updateFxCasulatyProbability(FxCasulatyProbabilityEntity fxCasulatyProbability);

    FxCasulatyProbabilityEntity updateXYByY(FxCasulatyProbabilityEntity fxCasulatyProbability);


    void deleteFxCasulatyProbabilitys(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String findByDictCodeAndDictItemCode(String dictCode, String dictItemCode);

    void initialize();

    String exportExcel(FxCasulatyProbabilityQueryParams queryParams, HttpServletResponse response);

    String exportTExcel(FxCasulatyProbabilityQueryParams queryParams, HttpServletResponse response);

    String importExcel(MultipartFile file);

    String importTExcel(MultipartFile file);

    void updateExpect(FxCasulatyProbabilityEntity fxCasulatyProbability);

    String calculate(FxCasulatyProbabilityQueryParams queryParams);
}
